package com.kzd.btgame.jetpack.api

import com.kzd.btgame.app.*
import com.kzd.btgame.entity.*
import com.module.lemlin.http.HttpResponseData
import com.module.lemlin.http.HttpResponseDataE
import rxhttp.RxHttp
import rxhttp.toClass

/**
 * 积分商城
 * */
suspend fun productMall(): HttpResponseDataE<MoneyTaskMall> =
    RxHttp.postForm(NEW_PRODUCT_MALL)
        .toClass<HttpResponseDataE<MoneyTaskMall>>()
        .await()

/**
 * 积分商城查询
 * */
suspend fun productMallQuery(id: String): HttpResponseData =
    RxHttp.postForm(NEW_PRODUCT_MALL_QUERY)
        .add("id", id)
        .toClass<HttpResponseData>()
        .await()